|
|
|
Add to Contacts is referred to as Add to Phone Book by WTAI. When a user clicks Add to Contacts, the Web browser transfers the name and number to the telephone’s Contacts application. The Contacts application allows users to edit and save the entry to their Contacts list.
To enable the add to Contacts functionality, use the following syntax:
This code can be embedded into any valid WML tag that implements href or a hyperlink by associating these tags with a <go> tag. Examples of tags you can associate with the <go> tag are the <a> tag, <anchor>, <do>, <option>, or <onevent> tags.
<?xml version=”1.0”?>
<!DOCTYPE wml PUBLIC “-//WAPFORUM//DTD WML 1.3//EN”
“http://www.wapforum.org/DTD/wml13.dtd”>
<wml>
<card id=”addap1” title=”Add to Contacts Demo”>
<p>
My number is:
<a href=”wtai://wp/ap;5551212;My Company”>5551212</a>
</p>
</card>
</wml>
The generated code is rendered as the following diagram:
The code adds the entry to the Contacts group with the name “My Company” on the telephone’s Contacts screen. A Save icon precedes this hyperlink, indicating the hyperlink is an “add to Contacts” number. When the user selects this link, the Web browser transfers the name and number, for example, “My Company” and “5551212,” to the telephone’s Contacts application. Users can then edit and save the entry to their Contacts list.
NOTE: A Save icon is generated only when an <a> tag or an <anchor> tag is used.
|
|
|